Handle missing data files better and add logging.