Added support for different download paths and URLs.