Adding more robust shell scripts to output summaries.