Added Threshold
Forgot some initializion code