Search program logic mostly in place.