Added support for script generalization.