Make this stuff scriptable. Should have done it long ago.