* Reduced magic number usage by fill_progress function (new). * Some switch indent fixing. * Remove use of log10 call.