Fixed some glitches with threads. At the moment, trying to fix the deadlockish problem I'm kinda sorta having with Dijkstra.