Make msg_type a property.