Beginning code for the profile update code.