Added possibility to filter doubles in order to get rid of noisy points