Either keep it in one thread or do not create any threads. https://www.lfsforum.net/showthread.php?t=80904