Internal refactoring of ProgBar