Adds delete functionality