Fixed bug
Added HTTPS support