Insert stops, lines and extrapolate missing lines