Fixed some minor issues resulting from the threading.
Merge branch 'master' of https://github.com/player1537/TSAVGD