Not quite sure what the point of this function is, since there is a WritePromisesValidatedFile, but ok.