Added file reading functionality.