Changed default to http mode