Removed unnecessary distinct clause.