Adding check for packet counter