Refactor statistic to be more generic and add total uploaded/downloaded statistic