Auto generation tool