Robustness has been added to the code for cnfrm.