Added support for lua scripting