Added echo statements to show progress.