Auto-restart in some conditions, and XLINK debug stuff