Adding token extraction from the tree.