Added Update and Delete functions