Added simple SPI functions