A sampling plugin driven by ECL logic