Implemented UpdateNode method