     }
     
     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

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

    }
    
    private func connectDeviceToNetwork(completion: @escaping () -> Void) {
        communicationManager = DeviceCommunicationManager()
        communicationManager?.connectAP { [unowned self] result in
            self.communicationManager = nil
