Add condition to track route backwards