Changed gains array to PROGMEM