Added more validation for script generation.