Slight changes to the formula and adjusting *Gain values