Make Tresholds global

Make Tresholds global, so the new tresholds can be used in Batch Mode