Use modulus in StdDev