Added interupts and eeprom