Simplify iterating over the file