Updated example to use latest events