Add update and delete functionality.