Added delete logic