New design for ScriptedAI