Updated some SPI functionality.