Added lua scripting