Added support for email attachments.