Replaced uint8_t by unsigned char for now.