Added option for getting file from URL