Including an option to automatically return a result from the top match when tree_id=first.
Updating treestore.