Added lots of debug output