Threshold functionality, and SetComplexity