added diag.
Merge branch 'test' into dev