Why is the `setTimeout` necessary?