search.TextGrid should be functional now.  I'm going to want to revise this function though to make the code more concise if possible and also to correct any bad practices (that "break;" statement seems suspect).