Add a better config for void fog and a writeToFile method in IOUtils