Implement BG search.