Added support for creating scripts.