Refactor changed file detection
Add Log.p for debugging