Threshold not working
Threshold working