Fixed update and added delete functionality.