Added https functionality