Added some updating profile code