Customizable tree max_levels