     let defBinDir = NSUserDefaults.standardUserDefaults()
     let defDataDir = NSUserDefaults.standardUserDefaults()
     let configFileDir = NSUserDefaults.standardUserDefaults()
+    let showNotifications = NSUserDefaults.standardUserDefaults()
     var dataPath: String
     var binPath: String
     var configPath: String

    /* ITEM ACTIONS */
    @IBAction func startServer(sender: NSMenuItem) {
        startMongod()
        if let port = getPort() {
            self.serverStatusMenuItem.title = "Running on Port \(port)"
            
            if showsDesktopNotifications {
                showNotification("mongod-starter", text: "MongoDB server running on port \(port)", senderTitle: sender.title)
            }
            
        } else {
            self.serverStatusMenuItem.title = "Running on Port 27017"
            
            if showsDesktopNotifications {
                showNotification("mongod-starter", text: "MongoDB server running on port 27017", senderTitle: sender.title)
            }
        }
    }
   
    @IBAction func stopServer(sender: NSMenuItem) {
        stopMongod()
        
        if showsDesktopNotifications {
            showNotification("mongod-starter", text: "MongoDB server has been stopped", senderTitle: sender.title)
        }
    }
    
    @IBAction func openPreferences(sender: NSMenuItem) {


            self.task.launch()
            
            if let port = getPort() {
                self.serverStatusMenuItem.title = "Running on Port \(port)"
                
                if showsDesktopNotifications {
                    showNotification("mongod-starter", text: "MongoDB server running on port \(port)", senderTitle: "Start MongoDB Server")
                }
                
            } else {
                self.serverStatusMenuItem.title = "Running on Port 27017"
                
                if showsDesktopNotifications {
                    showNotification("mongod-starter", text: "MongoDB server running on port 27017", senderTitle: "Start MongoDB Server")
                }
            }
            
            self.startServerMenuItem.hidden = true
            self.stopServerMenuItem.hidden = false
        }
