New thread pool idea works. Minor bug fixes to get it to work properly...