Refactored out generated event.