Updating my thread box program