ENHANCED restart by replacing wait with sleep