         guard parameters.count >= 2 else {
             throw AppContextError.badParameters
         }
-        guard let peerIdentifier = parameters[0] as? String, syncValue = parameters[1] as? String
+        guard let identifierString = parameters[0] as? String, syncValue = parameters[1] as? String
             else {
                 throw AppContextError.badParameters
         }

    }

    public func disconnect(parameters: [AnyObject]) throws {
        guard let peerIdentifier = parameters.first as? String else {
            throw AppContextError.badParameters
        }
        if let peerIdentifier = try? Peer(stringValue: peerID) {
            browserManager.disconnect(peerIdentifier)
        }
    }


        // This code MUST be executed asynchronously to avoid race conditions on JXcore side
        dispatch_async(dispatch_get_main_queue()) {
            do {
                let _ = try Peer(uuidIdentifier: identifierString, generation: 0)
                guard self.bluetoothState == .on || NetworkReachability().isWiFiEnabled() else {
                    self.handleMultiConnectConnectionFailure(withIdentifier: identifierString,
                                                             error: ThaliCoreError.RadioTurnedOff)
                    return
                }
                self.browserManager.connectToPeer(identifierString, syncValue: syncValue) {
                    [weak self] syncValue, error, port in
                    self?.handleMultiConnectResolved(withSyncValue: syncValue, port: port, error: error)
                    if let error = error {
