Add weights parameters.