Made line iteration off mem