Separate thread to handle stats reporting