Simplify usage of progress bar.