More work on scripting and a test harness for the scripting.