nit: can you update the name of the variable in appendThread too ?