Adding support for progress bar.