Implemented the location search