                 ])
             ])
 
-        _manager = BLECManager(config: config, queue: nil)
+        let queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0)
+        _manager = BLECManager(config: config, queue: queue)
         _manager.delegate = self;
     }
 

    }

    func centralDidUpdateState(manager: BLECManager) {
        _appendLog(_stateName(_manager.state))
    }

    func central(manager: BLECManager, didDiscoverPeripheral peripheral: CBPeripheral, RSSI: Int) {
        _appendLog("Discovered: \(peripheral.identifier.UUIDString)")
        _showRSSI(RSSI)
    }

    func central(central: BLECManager, didConnectPeripheral peripheral: CBPeripheral) {
        _appendLog("Connected \(peripheral.identifier.UUIDString)")
        _timer = NSTimer.scheduledTimerWithTimeInterval(1.0,
                                                        target: self,
                                                        selector: #selector(_update),
                                                        userInfo: nil,
                                                        repeats: true)
    }

    func central(central: BLECManager, didCheckCharacteristicsDevice device: BLECDevice) {

            return
        }
        
        dispatch_async(dispatch_get_main_queue(), {
            self._showRSSI(RSSI)
        })
    }
}

