Add tree traversal.