Added Events support to the example code.