Switched from multithreading to Queue.