Finally grok'ed the dynamic file generation