I'd move this LM_T just below `/* Search for the document */`