Modified to work with Raspberry Pi