Fixed so % always works on positive numbers