Some bug fixing.
Improvements and bug fixes

Changed the progress bar to a modal dialog. This resolves a couple of
problems.