Updates to rmsd routine.
-Joe