Working on thread_yield() and dispatch() some more.