Updated nodes to mapNodes.