Main Search Cum Shallow Compilation