         //check if there is already a plist entry and replace it.
         if bindingPosition != NSNotFound {
             if isBindingSet(in: bindings[bindingPosition] as! NSDictionary) {
-                present(message: "Binding is already set.\nImport is ready to be used in Xcode.")
+                present(message: "Binding is already set.\nImport is ready to be used in Xcode.", style: .informational)
+                return;
             }
             else {
                 bindings.removeObject(at: bindingPosition)

        }
        
        existingPlist.write(toFile: path, atomically: true);
    }
    
    private func position(in bindings:NSMutableArray) -> Int {

    private func installVanillaPlist() {
        do {
            try FileManager.default.copyItem(atPath: vanillaPlistPath, toPath: path)
            present(message: "Binding ⌘ + ctrl + P is now set in Xcode.", style: .informational)
        }
        catch let error as NSError {
            present(error: error)
        }
    }
    
    private func present(message: String, style: NSAlertStyle) {
        let alert = NSAlert()
        alert.messageText = (style == .informational) ? "👍" : "🤕"
        alert.informativeText = message
        alert.alertStyle = style
        alert.addButton(withTitle: "OK")
        alert.runModal()
    }
    
    private func present(error: NSError) {
        present(message: error.localizedDescription, style:.critical)
    }
}
