Removed duplication from progress_bar class