Created the profile functionality