Updated Network.connecting() method