Added warning for duplicate objects. Closes #91.