Change table types to uint8_t