Adding in generic radio code from Practical 7, needs a lot of changes to
make it work