Updated connecting to the network