Refactored code to support SSL/TLS