Updated Raspberry Pi script