Improve SPI driver