Increase possible teeth BTDC and max. RPM grid RPM + small code cleanup