SPI working, boundaries added