Extract from main to generator & imple Tag based trans