Added support for specifying the path as well as the url.