Updated pausing functionality