Added some functions for the player