You get several URLs with this code, how about making a helper function?