Bulletproofing the model cancellation code.