Added convenience function to retrieve attachments