You should probably return the remaining lines from this function... after all, there is no need to process again the lines you already looked for `iex>`.