Add traversal functionality