Changed Arduino provided byte type to platform agnostic unsigned char.