How is the visibility of an event implemented?