Added first packet encode.