Added functionality to received packets from the network simulator.