Removed purge in create function