         self.diddissappear = true
     }
 
+    func reset() {
+        self.index = nil
+        self.restoretabledata = nil
+        self.restorefilestask = nil
+        self.fullrestoretask = nil
+        self.info.stringValue = ""
+        self.filesrestoreradiobutton.state = .on
+        self.fullrestoreradiobutton.state = .off
+        // Restore state
+        self.restoreactions = RestoreActions(closure: self.verifytmprestorepath)
+        self.restoreisverified.image = #imageLiteral(resourceName: "red")
+    }
+
     // Restore files
     func executerestorefiles() {
-        // guard self.checkforrestorefiles() == true else { return }
         globalMainQueue.async { () -> Void in
             self.presentAsSheet(self.viewControllerProgress!)
         }


    @IBAction func estimate(_: NSButton) {
        if self.fullrestoreradiobutton.state == .on {
            self.prepareforfullrestore()
        } else {
            self.estimaterestorefiles()
        }

        }
    }

    // Estimate for full restore
    func estimatefullrestore() {
        guard self.checkforrsync() == false else { return }
        guard self.checkforfullrestore() == true else { return }
        if let index = self.index {
