Optimized algorithm to be more accurate
Ignore project files