Added mean tree framework