Shouldn't this be `callback` instead of `immediate`? Because `callback` is the function that's registered for the event and `immediate` is a completely new function that has never been used before.