Init before setting parameters.