Fixes and debug stuff.