Added lua scripting capabilities