Changed way of retrieving updated_old_path. Added test cases. Analyzing heuristics.