Lots of code for RPi that doesn't work yet.