Fixed printing id's flag. Added counting collected packets.