Changed previous YAML read into a statamic function.