Add stats queryparam handling.