Added printing of elapsed time.