Added much more debug stuff.