Credit Chuck Haskin for helping fix the SPI bug.