     
     /* Blockstack Core */
     
-    func startCoreAPI(walletPassword: String) {
+    func startCoreAPI(walletPassword: String, complete: @escaping () -> Void) {
         if let archivePath = Bundle.main.path(forResource: coreArchive, ofType: "") {
             NSLog("Blockstack Virtualenv archive path: \(archivePath)")
             

            
            coreAPIStartProcess.terminationHandler = { process in
                NSLog("Blockstack Core API started!")
            }
            
            NSLog("Starting Blockstack Core Virtualenv extraction...")

        
        startPortalProxy()
        startCorsProxy()
        startCoreAPI(walletPassword: createOrRetrieveCoreWalletPassword(), complete: {
            self.openPortal(path: "/")
        })
    }

    func applicationWillTerminate(_ aNotification: Notification) {
