Add YAML compatibility.