Rewrite task.