Adding in SSLManager and refactored for its use