Add line searching routines