Work out the tree-building in a dummy script.