Check functions now accept threshold values