Added a packetNum calculation.