Made the file reader a little nicer