Search through possible combinations.