I added that to cleanup the output a bit. If I had several (5 or 6) files to wait on, the the print "Waiting for stuffto finish" would show up before the last few "Stabilizing" messages. Since we know its going to take at least 2 seconds for the stabilization to occur, sleeping for 1 second here doesn't really do any harm, and it cleaned up the printed output.