>Just wondering: is there a big performance cost with this method? Since this >is a Lua function called each time we use a global variable. No, the function is only called for variables with value nil, ie undefined variables. --lhf