Using MessageInfo instead of Message to accumulate information about messages.