Change main to choose whether or not to use threads.
Add 'queue' number of subtom to better keep track of how many have been processed.