Better behavior when matches and non-matches are mixed.