Add type to message.