Made nodes into hash-map.