Added option to hide progress bar.