Preliminary gain shift code.