Reference Tree Generator