Mod: use unsigned when needed