wip
Added logic to get the current tree status