Added playerprofile function