Added busy-waiting, and results seem consistent now.
Added more debug stuff.