Use varint for packetids instead of byte