[NodeList] Changed for loops to speed up accessing.