Adding support for generating file