Defined `emit` and `on` methods