Add the ability to set the event type