Add setup function for the event module