fix bug : wrong variable assignment
Revert "Revert "Add a simple progress bar""

This reverts commit 1ae2b88f8ebbd25a5ae560fbe1912f06b3ef4903.
Merge branch 'progressbar'