I'm not sure why `pause` and `setTimeout` are needed here.