Added lots of debug.