Adding support for events on plain old objects