SPI functions were updated to work with all platforms.