Can you please make this a function parameter? It might be worth adding a script option to allow users to control this threshold- @cleme what do you think?