Helps to use a proper multithreaded queue instead of ugly plebian hackery.