Make max stretch factor configurable.