Change tid length to uint8