Generate one condition instead of many