Make the event functions external.