Add functionality for returning line numbers for matches