Use iterator on the split line fields rather than an index variable.