Sync threads

Magic.
Sync threads. Caution: Magic