Minor additions to scripting. Still not usable, but not far from.