Main Search Programmed