Updated Meggitt - error is within the detector. Whent he error is found, it is never used