Updated example for all events