Fixed file reading. No idea why it broke...