Added autorestart flag