Add Line.Len() and use it instead of taking len(line.Data) all the time.