Added duplicate prevention to create.