Main Search Cum While Sleepig