Before rewriting restart system