Added the delete functionality