Adding SPI API handlers.