First version of POR; need to double check the backtrack set analysis.