Added some diag statements.