Added handling of statistics coming from the server