Added ability to enable and disable pubsub in the gem