Improoved the statistics plugin a bit