Update the API to include stats