Added parameter for using https