Corrected progress functionality to give prettier output