minimum_failure_threshold option added to resolve issue 1648