Removing extraneous logging
Calculationg count_ps
Specifying what aggregated values to send