- Added duplicate flag and documentation