Swapped out len(line) for variable line_length.