Allow an object to subscribe to events