Add an events mixin