Some optimization on the parameters