Refactoring: code style.
Fixed progress bar.