Implementation of create and delete