Update for an Issue #189 (code refactoring of ProgressBar so it could be ready for usage in non-inference cases out of box)