adding option to set threshold for SpecificObjectCondition