Added periodic stat refresher to server code