Updated version of User class.