FileGen problem again. Logging everything and made more resilient.