Adjustments to formula script generation.