Added deleteNode() method.