Updating Middleware with LUA