Update threading.lua