Refactored bing search function