Makes the delete work