Fixing errors, work in Raspberry Pi