Iterative build-up of tree for last step