Test minP code. Comment out checkbox in UI.