We need distinct also. Fixes #31.