Added delete node function.