Implement Update and Delete function.