Refactors progress bar output; FIXED