Alright, I'm doing it now. nonNegativeMod seems to do the job.