Add API for uniqueness functionality

See #110 for more details