Fixed bug with dropped packets
Removed infinite loop