made pattern predictor configurable.