Rewrote value reading of Lua interface to to make it easier to use.