Add constraint checks.
Merge branch 'master' of https://github.com/samal84/supersurvey