Added script generation