Saving data to a YAML configuration