Before changing to container instead of global variable
Packet pool working, when depleted the simulation stops