Implemented delete functionality again