Added threshold testing.