Begin writing TWI functions