Add progress_bar-function