Added some SPI code to the timer