Pseudocode for search.TextGrid().