Replace byte with uint8_t