Bug fixes

Fixes to previous request. It was bombing out after about 600 decks analyzed; I'm still learning how this multiprocessing thing works.