Added check before restart