Use new connectToNetwork method