Check parameters.