Updated to use SSL