Brought in code for Compound Event Detectors, not being used yet.