Changed unsigned char to uint8_t.