Add optimizers and 'Optimize' setting.