         // This code MUST be executed asynchronously to avoid race conditions on JXcore side
         dispatch_async(dispatch_get_main_queue()) {
             do {
-                let peerIdentifier = try Peer(uuidIdentifier: identifierString, generation: 0)
+                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(peerIdentifier, syncValue: syncValue) {
+                self.browserManager.connectToPeer(identifierString, syncValue: syncValue) {
                     [weak self] syncValue, error, port in
                     self?.handleMultiConnectResolved(withSyncValue: syncValue, port: port, error: error)
                     if let error = error {

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

    }

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

