Added date heuristic to solve the incomplete files problem.