CODE FOR PROFILE TRACKER