Made some progress on scripting