Added attachments support (payload encryption)