Optimize line numbering 'code'