Add line number extraction