Added template to simplify persisting data to the eeprom.