Instead of all this isLoadMore logic everywhere; would it be possible to just do `lines = lines.slice(0, maxNLines)` in the beginning? (Unless that breaks the parsing? I know it's not very gracious now either but I wan't to avoid making it even more complicated)