1. State machine support for Lua. 2. C globals made static.