Updated setParameters.