Working search with output