Implement threshold via DSL script filter.