Update format of response for /stats endpoint