Fixed file reading.