Adapt to variable line