I guess this needs to be done in LUA to get rid of the race. I'll do that.