Set up line number tracking