Corrected the parsing of the attachments argument
Handle attachments under result not step