Main Search Trap Cum Compilation