Fixed the progress bar bug. Improved indentation.