Much better handling of the progress bar updates;