Detecting a fault condition