Added code for url option in download.