Control max tree size