Introduced TextGen to generate query sheet into text file