Update pausing code