Mostly just adding debug stuff.