Readability
Removed unnecessary sorting
New possibilities for tree_id's