Finally, the network detection works!