Detecting faulty operations