Add threading in init.lua