Changed initialization order to enable static lua_State