Why is this in a `setTimeout` ?