Added delete node function