Continue work on editGain()