Added playername and functions