This code augments the tutorial for long running script