Retention of known geometry, with regard to mean atomic positions, has proved useful in the refinement of macromolecules. In structures with a paucity of diffraction data and large displacements of the atoms from their mean positions, it is also of value to restrain the thermal factors to be consistent with known stereochemistry. This paper presents a technique for accomplishing this by restrai...