A bed foundation is provided by a rectangular panel having a flat upper face and downwardly depending side and end walls to form an open box-like structure. The method includes generating a no-fault signal when no ground current is detected, delaying generation of a fault signal when ground current is detected at least for the duration of an expected pulse in AC induced signal, and when the ground current persists for a sufficient period, generating a signal indicating a fault condition. In another preferred embodiment, a method for overwriting data in a memory device is described in which an error code is disregarded after a destructive pattern is written.