     
     var isDevModeEnabled : Bool = false
     
+    var isRegTestModeEnabled : Bool = false
+    var isRegTestModeChanging : Bool = false
+    let regTestCoreAPIPassword = "blockstack_integration_test_api_password"
+    
     var isShutdown : Bool = false
     
     let keychainServiceName = "blockstack-core-wallet-password"

        os_log("copyAPIKeyClick", log: log, type: .debug)
        let pasteboard = NSPasteboard.general()
        pasteboard.declareTypes([NSPasteboardTypeString], owner: nil)
        pasteboard.setString(createOrRetrieveCoreWalletPassword(), forType: NSPasteboardTypeString)
    }
    
    func devModeClick(sender: AnyObject?) {
        os_log("devModeClick", log: log, type: .debug)
        isDevModeEnabled = !isDevModeEnabled
    }
    
    func exitClick(sender: AnyObject?) {
        os_log("exitClick", log: log, type: .debug)

            menu.addItem(corsProxyPortMenuItem)
            
            let corePortMenuItem = NSMenuItem()
            var title = "Core node running on port \(coreProxyPort)"
            if(isRegTestModeChanging) {
                title = "Core node changing regtest mode state..."
            } else if(isRegTestModeEnabled) {
                title = "Core node is not running. Please start your regtest core node."
            }
            corePortMenuItem.title = title
            corePortMenuItem.isEnabled = false
            menu.addItem(corePortMenuItem)
            
