What does $sr stand for? Not $searchResult I hope, because then the loop reads rather cryptic