Use the right type of event.