Bit mask is faster than modulus.