Added distinct with exception.