Added node removal function