Got it to work with 1 2 or 3 threads