Enforce constraints.