     
     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"

            menu.addItem(corsProxyPortMenuItem)
            
            let corePortMenuItem = NSMenuItem()
            corePortMenuItem.title = "Core node running on port \(coreProxyPort)"
            corePortMenuItem.isEnabled = false
            menu.addItem(corePortMenuItem)
            

            devModeStatusMenuItem.isEnabled = false
            menu.addItem(devModeStatusMenuItem)
            
            let devModeMenuItem = NSMenuItem()
            devModeMenuItem.title = "\(isDevModeEnabled ? "Disable" : "Enable") Development Mode"
            
            if(!isRegTestModeEnabled && !isRegTestModeChanging) {
            devModeMenuItem.action = #selector(devModeClick)
            devModeMenuItem.keyEquivalent = "d"
            }
            
            menu.addItem(devModeMenuItem)
            
            menu.addItem(NSMenuItem.separator())
            
            let regTestModeStatusMenuItem = NSMenuItem()
            regTestModeStatusMenuItem.title = "Regtest Mode: \(isRegTestModeEnabled ? "Enabled" : "Disabled")"
            menu.addItem(regTestModeStatusMenuItem)
            
            if(isDevModeEnabled) {
                let regTestModeMenuItem = NSMenuItem()
                regTestModeMenuItem.title = "\(isRegTestModeEnabled ? "Disable" : "Enable") Regtest Mode"
                
                if(!isRegTestModeChanging) {
                    regTestModeMenuItem.action = #selector(regTestModeClick)
                    regTestModeMenuItem.keyEquivalent = "r"
                }
                
                menu.addItem(regTestModeMenuItem)
            }

            
            menu.addItem(NSMenuItem.separator())
            
