Create threshold.go