Changed nodes to listOfNodes.