Make URL a function and set the parameters there.