Commit 10: added tree_tick and slightly modified generate_trees in util to meet tree_tick needs