Update threads.sh