I made an improvement on the previous script. Added some colors, better time calculations, a “patch” from Murat that allows users to interactively quit the script.

Here is the updated script.