Created a controller for the scripting interface.