Main Search Cum Swap Pig