Added basics of a scripting interface.