Add TLS support