Make reading packets from the network really work