Initialized gains and some other params.