Implements progress bar.