Nicer handling of errors in data file.