         } else {
             return .Unknown
         }
-
-        switch (bluetoothManager.state, CBPeripheralManager.authorizationStatus()) {
+        
+        let state = (bluetoothManager.state, CBPeripheralManager.authorizationStatus())
+        switch state {
         case (.Unsupported, _), (.PoweredOff, _), (_, .Restricted):
             return .Disabled
         case (.Unauthorized, _), (_, .Denied):

    Requests access to Contacts, if necessary.
    */
    public func requestContacts() {
        switch statusContacts() {
        case .Unknown:
            ABAddressBookRequestAccessWithCompletion(nil) { success, error in
                self.detectAndCallback()

    Requests access to the Microphone, if necessary.
    */
    public func requestMicrophone() {
        let status = statusMicrophone()
        switch status {
        case .Unknown:
            AVAudioSession.sharedInstance().requestRecordPermission({ granted in
                self.detectAndCallback()
