Use synchronized Queue when iterating over tasks.
Parallelize tasks.
Add option for number of threads.
Disable multithreading by default.