Improved line number judge.