Replaced gain with overallGain