Restrict tree size generation