Simple data validation and adaptation