Working on SPI, functions implemented but not tested / debugged.