Some added stuff for SPI

Some added stuff for SPI