SPI now fully works - no visible bugs.