Custom constraints.
Custom constraints and tests.