Adding script for downloading attachments.