Adding regenerate script