Implement GetNode
Clean up code.