Switch to pubsub for over-the-wire communication, to prevent memory leaks