Replace bools with uint8_t