Use new structure for tree traversal.