Added some counters to packets.
Refactored simulation running code.