Reduced values in N to avoid overflow errors.