Initial work for depacketizer