Rewrite task