Rewrite task module