Add support for attaching user data to a message.