Working on initial threading.  Currently broken.