Added in code for updating a progress bar in the UI.