Slight adjustments to the search method in localizationController