Fixing an error in the current, commented out version of some functions in the fault detector script that was causing an error