Version for threshold test