Changed path of data file and changed opening method.