Added modulus function.