Writing a custom health check