Added in debug stuff.