Update to the create function