Wire up the event system.