Added methods for file reading