Changed SPI to return result