SPI debug changes