Simplify line number code