Separated out loading data from file