Inserted User.new function into functionality.