Adding basic support for distinct().