Begin conversion from htree to linear