Getting the tree to work