Store the index of the last spanned row, instead of the starting row. That latter information isn't really needed.