Added NRegine in backtracking