Outputing distinct users functionality added