-Moved tree to global scope
Bugs on bugs