Wrote tree_detect