Add error handling to delete and update.