Implemented the streamstats command.