Initial re-write of the ChatScript.