WIP for adding a statistics endpoint