Initialized and check gain values.