Updated to use new NATS client API.