Threshold added and working ;)