Fixing threading issue
Merge pull request #2 from FredericJacobs/master

Fix run loop/threading issue