Updated to include use of a config YAML file