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

    }

    func estimaterestorefiles() {
        guard self.restorefilestask != nil else {
            self.reset()
            return
        }
        guard self.verifytmprestorepath() == true else { return }
        self.working.startAnimation(nil)
        self.enabledisableradiobuttons(enable: false)
        self.restorefilestask?.executecopyfiles(remotefile: self.remotefiles!.stringValue, localCatalog: self.tmprestorepath!.stringValue, dryrun: true, updateprogress: self)
        self.outputprocess = self.restorefilestask?.outputprocess
    }

    func tableViewSelectionDidChange(_ notification: Notification) {
        let myTableViewFromNotification = (notification.object as? NSTableView)!
        if myTableViewFromNotification == self.restoretableView {
            self.info.textColor = setcolor(nsviewcontroller: self, color: .red)
            self.info.stringValue = Inforestore().info(num: 0)
            let indexes = myTableViewFromNotification.selectedRowIndexes
            if let index = indexes.first {
                guard self.restoretabledata != nil else { return }
                self.remotefiles.stringValue = self.restoretabledata![index]
                guard self.remotefiles.stringValue.isEmpty == false else {
                    self.info.textColor = setcolor(nsviewcontroller: self, color: .red)
                    self.info.stringValue = Inforestore().info(num: 3)
                    self.reset()
                    return
                }
                self.restoreactions?.index = true
                self.restoreactions?.remotefileverified = true
            }
        } else {
            let indexes = myTableViewFromNotification.selectedRowIndexes
            if let index = indexes.first {
                if index != self.index {
                    self.reset()
                    globalMainQueue.async { () -> Void in
                        self.restoretableView.reloadData()
                    }
                }
                self.index = index
                self.prepareforfilesrestoreandandgetremotefilelist()
            } else {
                self.reset()
                globalMainQueue.async { () -> Void in
                    self.restoretableView.reloadData()
                }
            }
        }
    }

    func prepareforfilesrestoreandandgetremotefilelist() {
        if let index = self.index {
            guard self.checkforgetremotefiles() == true else { return }
            self.info.stringValue = Inforestore().info(num: 0)
            self.remotefiles.stringValue = ""
            let hiddenID = self.configurations!.getConfigurationsDataSourceSynchronize()![index].value(forKey: "hiddenID") as? Int ?? -1
            if self.configurations!.getConfigurationsDataSourceSynchronize()![index].value(forKey: "taskCellID") as? String ?? "" != ViewControllerReference.shared.snapshot {
                self.enabledisableradiobuttons(enable: false)
                self.restorefilestask = RestorefilesTask(hiddenID: hiddenID)
                self.remotefilelist = Remotefilelist(hiddenID: hiddenID)

        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() {
        globalMainQueue.async { () -> Void in
            self.presentAsSheet(self.viewControllerProgress!)
        }
