Correct addParametersIfRequired to not reset accumulator