Move local $requestForMatching variable initialization outside loop.