Fixing a bug with publishing events
Add a method to allow making requests in the background