Qualification rewrite