                 return
             }
         case "FA01":
-            if let closure = confirmClosure {
-                guard let value = dataArray.first else {
-                    closure(.failure)
-                    confirmClosure = nil
-                    return
-                }
-                
-                switch value {
-                case UMCharacteristics.UrbandReady:
-                    debugPrint("The urband is ready and without problems")
-                    closure(UMGestureResponse.success)
-                    confirmClosure = nil
-                case UMCharacteristics.ConfirmGesture:
-                    debugPrint("The urband confirm gesture was detected")
-                    closure(UMGestureResponse.success)
-                    confirmClosure = nil
-                default:
-                    debugPrint("Unrecognized value in characteristic \(characteristic.uuid.uuidString)")
-                }
-            }
+            guard let value = dataArray.first else {
+                gestureClosure?(.failure)
+                gestureClosure = nil
+                return
+            }
+            
+            debugPrint("Characteristic \(characteristic.uuid.uuidString) - value \(value)")
+
+            switch value {
+            case UMCharacteristics.UrbandReady:
+                debugPrint("The urband is ready and without problems")
+//                closure(UMGestureResponse.success)
+//                confirmClosure = nil
+            case UMCharacteristics.ConfirmGesture:
+                debugPrint("The urband confirm gesture was detected")
+                gestureClosure?(UMGestureResponse.confirm)
+//                confirmClosure = nil
+            default:
+                debugPrint("Unrecognized value in characteristic \(characteristic.uuid.uuidString)")
+            }
+//            if let closure = confirmClosure {
+//                
+//            }
         default:
             debugPrint("The characteristic \(characteristic.uuid.uuidString) is not defined yet")
         }

enum CharState {
    case none
    case battery
}

public enum UMCentralState {

        }
    }
    
    public func readFA01(_ urband: CBPeripheral, response: @escaping (UMDeviceStatus) -> Void) {
        // FIXME: Create a readFA01 gesture just for checking the correct function of the urband
        readyClosure = response
        let cfa01 = urband.services?[1].characteristics?[0]
        read(characteristic: cfa01, fromPeripheral: urband, state: .ready)
    }
    
    public func login(urband u: CBPeripheral, withToken token: [UInt8]) {
