Avoid perl undef warning by setting large value default for max_level