Added support to save user profile.