Use tty rather than username to group user stats.