Reactivated old code to handle user profiles.