Added very basic scripting support. Whee.