Added options to use https