New private functions, supplies both anova and threshold functions