Added pretty-printing for the elapsed time and some logging.