TODO: Remove saveYamlFile method