It seems to be working, except the threshold number (but I can manage without it).
Thanks!