Translated a little bit more, updated spi code