Made the changes to the file reading thing. Check it up now.