Added delete functionality as well.