Guarded against MOD by zero error.