Add approximate line number tracking