Changed the variables in the player hook.