Implement data-diagnosis fun