Register to add an event