Added kFactor limit to avoid infinite loops executing BaseEngine.