Added HTTPS support.