Improving hidden files handling, decreasing the number of iterations