Added ability for input file to be a URL.