Add urlRetrieve function and a generic requiredVar.