WritePacketInfo method added (not tested)