Add message body index to message_generator.