Detecting malfunction or potential malfunction