Created load data file function