Implemented the download option