We should verify that `callback` is a function here, just to be safe.