Made function to pull data from url-field so it becomes a general
callback thing.
I obviously can't decide on whether or not to use extra newlines after
defines or not... Seems nice in some places and completely useless in
others.