Added some SPI code.