Added option to customize tls security level