Added scopeDistinct