Added a progress bar to show progress of task under execution.