Add serial saving code to the Raspberry Pi.