Cleaning up the progress logging code.