Changed the script to give an indicator of progress.