     private var characteristic: CBCharacteristic?
     
     private var connectedHub: Hub?
+    private var isInitializingHub = false
     
     override init() {
         super.init()

            self.connectedHub = Duplo.TrainBase()
        }
        
        self.peripheral = peripheral
        centralManager.connect(peripheral, options: nil)
        

    }
    
    func disconnect() {
        write(data: Data([0x04, 0x00, 0x02, 0x01])) // Switch Off Hub
        reset()
    }
    
    func reset() {
        self.peripheral = nil
        self.characteristic = nil
        self.connectedHub = nil
        self.isInitializingHub = false
    }
    
    func set(characteristic: CBCharacteristic) {
