Fixed Threshold.cpp to work again using "new" declaration