Use Search.refresh instead of sleeping