Added ssl checks