     }
     
     private func waitForCloudConnection(completion: @escaping () -> Void) {
-        print("f")
         DispatchQueue.main.asyncAfter(deadline: .now() + 1) { 
             completion()
         }
     }
     
     private func checkForInternetConnectivity() {
-        print("h")
-        
         var retries = 0
         func connect() {
-            print("trying to connect")
             if !isHostReachable && retries < 5 {
                 DispatchQueue.main.asyncAfter(deadline: .now() + 2.0) {
                     retries += 1

    override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)
        
        print("a")
        configureDeviceNetworkCredentials {
            print("c")
            self.connectDeviceToNetwork {
                print("e")
                self.waitForCloudConnection {
                    print("g")
                    self.checkForInternetConnectivity()
                }
            }

    @objc private func reachabilityChanged(notification: NSNotification) {
        guard let reachability = notification.object as? Reachability else { return }
        let status = reachability.currentReachabilityStatus()
        
        isHostReachable = status.rawValue == 1 || status.rawValue == 2
    }
