Updated script generation approach.