Improved line number output