Instanced rendering and basic lua scripting