Trying to add in GAIN stuff from headers