     }
 
     @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()
     }

                self.publishnumbers(outputprocess: self.outputprocess, local: false)
                self.enabledisablebuttons(enable: true)
            }
            if let index = self.index {
                if self.complete == false {
                    self.complete = true
                    self.outputprocess = OutputProcess()

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