Refactored to a User class.