Adds a pub/sub implementation