improved snarl-diag.
Improved diag code.
better diag code.