Added wrapper code from CHARMM.