I am indexing all the elements of the tree, not the nodes.