Done tree2bb conversion