Another approach for Lua.
Working Lua integration - Draw not working.