Rewrite task submission processes as plugin