Improve speed of the algorithm
Add filtering parameter to dot finder