Added diagnostics script