Adds duplicate parent object checking; fixes a bug or two while I'm at it.