Attachment downloads now working, needs some robustness around external calls and XML parsing.