Added debug stuff.