Maybe we could use a LUA script.