Changed implementation of getNODE to fit your specs