Added support for a progress bar