Add a check to see if the remainder is 0.