Rename "line" to "seq" (stop sequence) everywhere to avoid confusion.