Added a save method to profile.