Added the ability to use https