Added scripting functionalities.