Threshold fix.
Fixed Deploy Threshold issue, deploy.groovy issues