Changed uint8_t's to unsigned char's