Added the ability to remove attachments.