Format the tree stuff