Revise diagnostics script.