Added support for YAML files.