Added rest access to statistics