Added a duplicate ID function.