Initial working script generation