I2C code added