Added type option for download.