Corrected the i2 scan and added more debug output