Added error handling for missing data file.