Added the functionality to load date from a csv file