Basic getNode and addNode functions