Added delete and update functionalities.