Completely working. I think...

added this.invoke to update the main progress bar without hanging