Work on tree building