Added option for using HTTPS (Secure) instad of HTTP