Changing EEPROM writing to only write if changed