Adding occupancy checks to rmsd, perhaps should be migrated to the rmsd function from current location.