Thanks for the script, but the message structure isn't entirely clear. Can you post a couple of test messages to show how they are intended to look like?...