Get Yaml settings by a function