Added a new version of the run_format_data script with a little more error checking.