Refactored on progress bar.