API changes for simpler usage of the Publisher/Subscriber classes