Added zero-threshold analysis code.