Converted the modulus and remainder to ints