Grouping output of client