Scheleton for persisting statistics periodically.