Adding the delete functionality.