Added SetMaxTreeSize to root