Added tree traversal.