Changed to use Modulo.