Added delete() function