Update code related to hidden threads.