Added constraints

- todo: Test constraints