Added lots more debugging.