Added code to read data files