Moved the EEPROM update to a better location