Updated to use ssl