Added file reading method