Implement warnings for broken inputs and enforce
contracts.