Adding support for url to be a proc.