ENH: Added restrict deformation option.