OK, that part is easy enough, but it doesn't answer the question how the macro would know which IDs are required for each message?