Set up line numbers correctly.