Modified for use with I2C bus.