Thread locked to minimize spamming.