Added eeprom helper function