Start of new scripting system.