Multipurpose scripting framework for CraftStudio