Changed getNodes() to use gets instead of scans