Implement Failsafe and JSON schemas.