Improved backtracking.