Retracking and variable extraction in one go