More refinement in the logging approach.
Nicer output from rerun script