I think in the long run we should create one function: geturl which takes parameters.