Added hasrestart option