Inline new_quality temp in clamp