Updated I2C and added serial interface