BuildTree works