     }
 
     @IBAction func displayrsynccommand(_: NSButton) {
-        guard self.index != nil else {
+        if let index = self.index() {
+            if self.verifyradiobutton.state == .on {
+                self.rsynccommanddisplay.stringValue = Displayrsyncpath(index: index, display: .verify).displayrsyncpath ?? ""
+            } else {
+                self.rsynccommanddisplay.stringValue = Displayrsyncpath(index: index, display: .restore).displayrsyncpath ?? ""
+            }
+        } else {
             self.rsynccommanddisplay.stringValue = ""
-            return
-        }
-        if self.verifyradiobutton.state == .on {
-            self.rsynccommanddisplay.stringValue = Displayrsyncpath(index: self.index!, display: .verify).displayrsyncpath ?? ""
-        } else {
-            self.rsynccommanddisplay.stringValue = Displayrsyncpath(index: self.index!, display: .restore).displayrsyncpath ?? ""
         }
     }
 
     // Abort button
     @IBAction func abort(_: NSButton) {
-        self.lastindex = self.index
         guard self.processRefererence != nil else { return }
         self.processRefererence!.abortProcess()
     }

    }

    @IBAction func verify(_: NSButton) {
        guard self.index != nil else { return }
        self.rsynccommanddisplay.stringValue = Displayrsyncpath(index: self.index!, display: .verify).displayrsyncpath ?? ""
        self.verifyradiobutton.state = .on
        self.changedradiobutton.state = .off
        self.gotit.textColor = setcolor(nsviewcontroller: self, color: .white)
        let gotit: String = NSLocalizedString("Verifying, please wait...", comment: "Verify")
        self.gotit.stringValue = gotit
        self.enabledisablebuttons(enable: false)
        self.working.startAnimation(nil)
        if let arguments = self.configurations?.arguments4verify(index: self.index!) {
            self.outputprocess = OutputProcess()
            self.outputprocess?.addlinefromoutput(str: "*** Verify ***")
            self.verifyandchanged(arguments: arguments)
        }
    }

    @IBAction func changed(_: NSButton) {
        guard self.index != nil else { return }
        self.rsynccommanddisplay.stringValue = Displayrsyncpath(index: self.index!, display: .restore).displayrsyncpath ?? ""
        self.changedradiobutton.state = .on
        self.verifyradiobutton.state = .off
        self.gotit.textColor = setcolor(nsviewcontroller: self, color: .white)
        let gotit: String = NSLocalizedString("Computing changed, please wait...", comment: "Verify")
        self.gotit.stringValue = gotit
        self.enabledisablebuttons(enable: false)
        self.working.startAnimation(nil)
        if let arguments = self.configurations?.arguments4restore(index: self.index!, argtype: .argdryRun) {
            self.outputprocess = OutputProcess()
            self.outputprocess?.addlinefromoutput(str: "*** Changed ***")
            self.verifyandchanged(arguments: arguments)
        }
    }


                self.resetinfo()
                return
            }
            guard self.index() != self.lastindex ?? -1 else { return }
            guard self.estimatedindex ?? -1 != index else { return }
            self.resetinfo()
            self.setinfo()
