Added delete and update functionality.