Add simple statistics.
Properly return JSON from health check.