An attempt to work with threads.
Fixes stupid namespace-bracket mistake.