Add option to load configuration from YAML file.