Working search implementation